<!DOCTYPE html PUBLIC 
	"-//W3C//DTD XHTML 1.1 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	
<%@taglib prefix="s" uri="/struts-tags" %>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>Add New Feed</title>
	<s:head />
</head>
<body>
	<h4 id="pageTitle">
		Add New Feed
	</h4> 
	<s:if test="hasActionErrors()">
		<div class="errors">
			<s:actionerror/>
		</div>
	</s:if>
	<s:form method="post" action="savesource">

		<s:hidden name="source.id"/>
		<s:hidden name="actionType" value="add" />

		<s:textfield name="source.name" label="Name" maxlength="50" size="100" required="true"/>

		<s:textfield name="source.link" label="Link" maxlength="512" size="100" required="true"/>
		
		<s:textfield name="source.description" label="Description" maxlength="400" size="100"/>
		<s:checkbox name="source.cbcContent" label="Is CBC Content?" fieldValue="true"></s:checkbox>
		
		<s:textfield name="source.defaultGeom" label="Default Geometry" tooltip="Format: latitude,longitude" maxlength="100" size="100"/>
		
		<s:select label="Category" name="source.category" list="categoryList" listKey="id" listValue="name"></s:select>
				
		<s:select label="Event SubCategory" name="source.eventSubcategory"  list="eventSubcategoryList" 
			listKey="id" listValue="subcategory" 
			headerKey="-1" headerValue="Select..."
			></s:select>
		
		<s:select label="Source Type" name="source.sourceType" list="sourceTypeMap" ></s:select>
				
		<s:checkbox label="Digest?" name="source.digestFlag" fieldValue="true" />
				
		<tr>
			<td colspan="9">
				<div align="center">
					<input type="submit" value="Save"  />
					<input type="button" value="Cancel" onclick="window.location.href='<s:url action="listsource" />';" />
				</div>
			</td>
		</tr>
		
	</s:form>	

</body>
</html>
